<?php echo $beginForm; ?>
<div class="row">
    <table class="table table-hover table-striped table-bordered">
        <tr>
            <th width="1%" class="c-align vm-align">#</th>
            <th class="c-align vm-align">Libelle</th>
            <th class="c-align vm-align">Alias</th>
            <th class="c-align vm-align">Titre col</th>
            <th class="w-100 c-align vm-align">Activé</th>
            <th class="w-100 c-align vm-align">Colonne</th>
            <th class="w-100 c-align vm-align">Recherché</th>
            <th class="w-100 c-align vm-align">
                <button type="button" class="btn btn-success" onclick="goTo('index.php?controller=attribut&view=add')"><span class="glyphicon glyphicon-plus-sign"></span> Ajouter</button>
            </th>
        </tr>
        <?php $x = $start_num; ?>
        <?php foreach($attributs as $attribut) { ?>
        <tr>
            <td class="r-align"><?php echo $x; ?></td>
            <td><?php echo $attribut->libelle; ?></td>
            <td><?php echo $attribut->alias; ?></td>
            <td><?php echo $attribut->col_title; ?></td>
            <td class="w-100 c-align"><?php echo ($attribut->active==1)?'Oui':'Non'; ?></td>
            <td class="w-100 c-align"><?php echo ($attribut->col==1)?'Oui':'Non'; ?></td>
            <td class="w-100 c-align"><?php echo ($attribut->search==1)?'Oui':'Non'; ?></td>
            <td class="w-100 c-align">
                <div class="btn-group">
                    <button type="button" class="btn btn-xs btn-primary">Action</button>
                    <button type="button" class="btn btn-xs btn-primary dropdown-toggle" data-toggle="dropdown">
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu pull-right" role="menu">
                        <li><a style="cursor:pointer" onclick="goTo('index.php?controller=attribut&view=edit&id=<?php echo $attribut->id_attribut; ?>')"><span class="glyphicon glyphicon-pencil"></span> Modifier</a></li>
                        <li><a style="cursor:pointer" onclick="confirmDelete('index.php?controller=attribut&view=delete&id=<?php echo $attribut->id_attribut; ?>')"><span class="glyphicon glyphicon-trash"></span> Supprimer</a></li>
                    </ul>
                </div>
            </td>
        </tr>
        <?php $x++; ?>
        <?php } ?>
    </table>
</div>
<div class="row"><?php echo $pager; ?></div>
<?php echo $endForm; ?>